package mall.service;

import java.util.List;

import mall.dao.OrderDetailDAO;
import mall.pojo.Orderdetail;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class OrderDetailServiceImpl implements OrderDetailService {
	@Autowired
	private OrderDetailDAO orderDetailDAO;
	
	@Transactional
	@Override
	public void createOrderDetail(Orderdetail orderdetail) {
		orderDetailDAO.createOrderDetail(orderdetail);
	}

	@Transactional
	@Override
	public List<Orderdetail> getOrderDetailShop(int orderId) {
		return orderDetailDAO.getOrderDetailShop(orderId);
	}

	

}
